{include file="public/header" /}
<body>
<div class="x-body layui-anim">
    <form class="layui-form " id="form">
        <input type="hidden" name="id" value="{$info.id}">
        <fieldset class="layui-elem-field layui-field-title">
            <legend>订单信息</legend>
        </fieldset>
        <div class="layui-form-item">
            <label class="layui-form-label">订单编号</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.sn}" readonly="" >
            </div>
            <label class="layui-form-label">下单时间</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.create_time}" readonly="" >
            </div>
            <label class="layui-form-label">订单状态</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.status}" disabled="" style="color: red">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">支付方式</label>
            <div class="layui-input-inline">
                <input type="text" readonly="" autocomplete="off" class="layui-input" value="{$info.pay_way}"/>
            </div>
            <label class="layui-form-label">支付状态</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.pay_state?'已支付':'未支付'}" readonly="">
            </div>
            <label class="layui-form-label">支付时间</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{neq name='$info.pay_time' value=''}{:date('Y-m-d H:i:s',$info.pay_time)}{/neq}" placeholder="未支付" readonly="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">总金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.total_amount}" readonly="">
            </div>

            <label class="layui-form-label">实付金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.real_amount}" readonly="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" value="{$info.remark}" readonly="" style="width: 100%">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">订单总利润</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.profit}" readonly="">
            </div>
            <label class="layui-form-label">VIP积分利润</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.vip_profit}" readonly="">
            </div>
            <label class="layui-form-label">订单总成本</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.cost}" readonly="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">爱贝抵扣金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.currency}" readonly="">
            </div>
            <label class="layui-form-label">链豆抵扣金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.chain_bean}" readonly="">
            </div>
            <label class="layui-form-label">爱豆抵扣金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.love_bean}" readonly="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">vip积分抵扣金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.vip_integ}" readonly="">
            </div>
            <label class="layui-form-label">抵扣券抵扣金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.deduct}" readonly="">
            </div>
        </div>
        <fieldset class="layui-elem-field layui-field-title">
            <legend>下单会员</legend>
        </fieldset>
        <div class="layui-form-item">

            <label class="layui-form-label">会员编号</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.user.code}" disabled="">
            </div>

            <label class="layui-form-label">会员昵称</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.user.nickname}" disabled="">
            </div>
            <label class="layui-form-label">会员手机号</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.user.mobile}" disabled="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" value="{$info.remark}" readonly="" style="width: 50%">
            </div>
        </div>
        <fieldset class="layui-elem-field layui-field-title">
            <legend>收发货信息</legend>
        </fieldset>

        <div class="layui-form-item">
            <label class="layui-form-label">收货人</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info->receiver}" readonly="">
            </div>
            <label class="layui-form-label">收货电话</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info->receiver_tel}" readonly="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">收货地址</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" value="{$info.p?$info.p.title:''}{$info.c?$info.c.title:''}{$info.d?$info.d.title:''}{$info.address_details}" readonly="" style="width: 50%">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">发货时间</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{neq name='$info.post_time' value=''}{:date('Y-m-d H:i:s',$info.post_time)}{/neq}" placeholder="未发货" disabled="">
            </div>
            <label class="layui-form-label">快递公司</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.express?$info.express.title:''}" placeholder="未发货" disabled="">
            </div>
            <label class="layui-form-label">快递单号</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{$info.express_code}" placeholder="未发货" disabled="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">收货时间</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="{if $info.receipt_time}{:date('Y-m-d H:i:s',$info.receipt_time)}{/if}" placeholder="未收货" disabled="">
            </div>
        </div>
        <fieldset class="layui-elem-field layui-field-title">
            <legend>订单商品</legend>
        </fieldset>
        <div class="layui-form-item">
            <label class="layui-form-label">订单商品</label>
            <div class="layui-input-inline" style="width: 80%;">
                <table class="layui-table layui-form" style="margin: 0px;">
                    <thead>
                    <tr>
                        <th>商品名称</th>
                        <th>缩略图</th>
                        <th>单价</th>
                        <th>规格</th>
                        <th>数量</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="$info.products" item="v"}
                    <tr class="data_line">
                        <td>{$v.title}</td>
                        <td><a href="{$v.icon}" target="_blank"><img src="{$v.icon}" style="width: 30px"/></a></td>
                        <td>{$v.vip_price}</td>
                        <td>{$v.sku_name}</td>
                        <td>{$v.num}</td>
                    </tr>
                    {/foreach}
                    </tbody>

                </table>
            </div>
        </div>
    </form>
</div>
</body>
{include file="public/footer" /}
</html>